// pages/shopping/shopping.js
const app =  getApp();

Page({

  /**
   * 页面的初始数据
   */
  data: {
    navigationBarTitle: '跳蚤市场',
    goods: [
      {
        imgs_src: [
          'http://photocq.photo.store.qq.com/psc?/V14ZLLI73PxWcw/Ub*4aHxmnNgAqL6c0lJ4K9VzpRe*mFuPxi5tUQn5vjICF.XtnIB2pQgjBQvTSe8rGTD46DpzIULVGT5xwB0Wa5ThelVocajHcJ8g2AClkJw!/b&bo=0ALQAgAAAAARFyA!&rf=viewer_4'
        ],
        description: '呜呜呜，我丢了石原里美'
      },
      {
        imgs_src: [
          'http://photocq.photo.store.qq.com/psc?/V14ZLLI73PxWcw/Ub*4aHxmnNgAqL6c0lJ4K6rppkvsLVrwhJ.V6hKcQvuzK3pMgPxZ41QwjWJtalmh30Mad8c9*2KJ5l4owaRRjHNi.86*Lfxjk45rQJgo3m0!/b&bo=0AIqAwAAAAARF9s!&rf=viewer_4'
        ],
        description: '呜呜呜，我丢了石原里美'
      },
      {
        imgs_src: [
          'http://photocq.photo.store.qq.com/psc?/V14ZLLI73PxWcw/Ub*4aHxmnNgAqL6c0lJ4K9VzpRe*mFuPxi5tUQn5vjICF.XtnIB2pQgjBQvTSe8rGTD46DpzIULVGT5xwB0Wa5ThelVocajHcJ8g2AClkJw!/b&bo=0ALQAgAAAAARFyA!&rf=viewer_4'
        ],
        description: '呜呜呜，我丢了石原里美'
      },
      {
        imgs_src: [
          'http://photocq.photo.store.qq.com/psc?/V14ZLLI73PxWcw/Ub*4aHxmnNgAqL6c0lJ4K6rppkvsLVrwhJ.V6hKcQvuzK3pMgPxZ41QwjWJtalmh30Mad8c9*2KJ5l4owaRRjHNi.86*Lfxjk45rQJgo3m0!/b&bo=0AIqAwAAAAARF9s!&rf=viewer_4'
        ],
        description: '呜呜呜，我丢了石原里美'
      },
      {
        imgs_src: [
          'http://photocq.photo.store.qq.com/psc?/V14ZLLI73PxWcw/Ub*4aHxmnNgAqL6c0lJ4K9VzpRe*mFuPxi5tUQn5vjICF.XtnIB2pQgjBQvTSe8rGTD46DpzIULVGT5xwB0Wa5ThelVocajHcJ8g2AClkJw!/b&bo=0ALQAgAAAAARFyA!&rf=viewer_4'
        ],
        description: '呜呜呜，我丢了石原里美'
      },
      {
        imgs_src: [
          'http://photonj.photo.store.qq.com/psc?/V5330sAc2sIo4c1GiQfK1XUMht3hutBC/45NBuzDIW489QBoVep5mcap3Un7vrYKni0OWOZYLIUhK9luUs.ovqZaK4QKgF3jkAXo2Q3DegiF2qgyMDfcz*yGG8HLYYhs5BGg6OlVKfb8!/b&bo=UAY4BFAGOAQBGT4!&rf=viewer_4'
        ],
        description: '呜呜呜，我丢了石原里美'
      },
      {
        imgs_src: [
          'http://m.qpic.cn/psc?/V5330sAc2sIo4c1GiQfK1XUMht3hutBC/45NBuzDIW489QBoVep5mcdBM40aFoVC8wz9gkL6NyUUGTVEr1gUt1ropczgy12OkhApS8y6SRokK9KrVYcteHbQ8p6iUkQqoAxK98pD73E8!/b&bo=OARQBjgEUAYBOR4!&rf=viewer_4'
        ],
        description: '呜呜呜，我丢了石原里美'
      }
    ],
  
  },
  onShow: function () {
    if (typeof this.getTabBar === 'function' && this.getTabBar()) {
      this.getTabBar().setData({
        selected: 1  //数字是当前页面在tabbar的索引
      })
    }
    console.log('onshow');
    
  },
  onReady(){
    setTimeout(() => {
      this.setData({
        height:app.globalData.container
      })
    }, 100);
  },


 
    

})